package org.graduation.recruitment.mapper.resume;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.graduation.recruitment.entity.pojo.resume.CampusExperience;

import java.util.List;

/**
 * 校园经历Mapper接口，继承自BaseMapper，用于对校园经历表进行数据库操作。
 */
@Mapper
public interface CampusExperienceMapper extends BaseMapper<CampusExperience> {

    /**
     * 根据简历ID查询对应的全部校园经历
     *
     * @param resumeId 简历ID，用于查询与之关联的校园经历
     * @return 返回一个校园经历列表，这些经历都属于指定的简历
     */
    @Select("SELECT * FROM resume_campus_experience where resume_id = #{resumeId}")
    List<CampusExperience> selectAllByResumeId(Long resumeId);
}